import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listManagement(query) {
    return request({
        url: '/collaborative/management/list',
        method: 'get',
        params: query
    })
}

export function listManagementTwo(query) {
    return request({
        url: '/collaborative/management/listTwo',
        method: 'get',
        params: query
    })
}

export function listManagementType(query) {
    return request({
        url: '/collaborative/management/listType',
        method: 'get',
        params: query
    })
}

export function listManagementInfo(query) {
    return request({
        url: '/collaborative/management/listInfo',
        method: 'get',
        params: query
    })
}

// 查询【请填写功能名称】详细
export function getManagement(collaborativeId) {
    return request({
        url: '/collaborative/management/' + collaborativeId,
        method: 'get'
    })
}

// 新增【请填写功能名称】
export function addManagement(data) {
    return request({
        url: '/collaborative/management',
        method: 'post',
        data: data
    })
}

// 修改【请填写功能名称】
export function updateManagement(data) {
    return request({
        url: '/collaborative/management',
        method: 'put',
        data: data
    })
}

// 删除【请填写功能名称】
export function delManagement(collaborativeId) {
    return request({
        url: '/collaborative/management/' + collaborativeId,
        method: 'delete'
    })
}

//查询当前企业是否和登录企业建立合作关系
export function checkEnterprise(organizationId) {
    return request({
        url: '/collaborative/management/check/'+organizationId,
        method: 'get'
    })
}
